package com.fhb.demo.myapp.youmeng.ui.service;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;

import com.umeng.message.common.UmLog;

/**
 * Created by Administrator on 2018/6/2.
 */

public abstract class BaseService extends Service {
    protected  String TAG=this.getClass().getSimpleName();
    protected Context  ctx=null;

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        UmLog.d(TAG,"onBind()");
        return null;
    }

    @Override
    public void onCreate() {
        UmLog.d(TAG,"onCreate()");
       ctx=this.getApplicationContext();
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        UmLog.d(TAG,"onStartCommand()");
        return super.onStartCommand(intent, flags, startId);
    }
}
